﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Simple benefits estimator for Small enhancement requests</title>
    <style type="text/css" id="baseCSS">
        .PageHeader
        {
            font-size: large;
            font-weight: bold;
            color: #003C70;
        }
        .BigNo
        {
            font-size: x-large;
            font-weight: bold;
            color: #003C70;
            padding-left: 1ex;
            padding-right: 1ex;
        }
        .help
        {
            font-size: smaller;
            font-weight: normal;
            background-color: #eeeef1;
            padding-left: 2em;
            padding-right: 2em;
        }
        .helplink
        {
            text-decoration: none;
            color: #003C70;
            border-bottom: dashed 1px #003C70;
        }
        .calculator
        {
            border: solid 2px #eeeeff;
            font-size: smaller;
            background: #ddddee;
        }
        .template
        {
            border: 1px dashed red;
            background-color: pink;
            display: none;
        }
        HR
        {
            border: 1px solid #003C70;
        }
        HR.light
        {
            border: 1px solid #433996;
        }
    </style>
    <script type="text/javascript" id="jQuery" src="jquery-1.5.2.js"></script>
    <script type="text/javascript" id="scrRenumerate">
        function renumerateSections() {
            var i = 0,
                ii = 0,
                nums = $(".BigNo, .SmallNo");
            nums.each(function (n, e) {
                if ($(e).is(":visible")) {
                    if ($(e).is(".BigNo")) {
                        i = i + 1;
                        $(e).text(i);
                        ii = 0;
                    }
                    else if ($(e).is(".SmallNo")) {
                        ii = ii + 1;
                        $(e).text(i + "." + ii);
                    }
                } else {
                    if ($(e).is(".BigNo")) {
                        $(e).text(i);
                        ii = 0;
                    }
                    else if ($(e).is(".SmallNo")) {
                        $(e).text(i + "." + ii);
                    }
                }
            });
        }
        $(document).ready(function () {
            renumerateSections();
        });
    </script>
    <script type="text/javascript" id="scrToggleDiv">
        function toggleDiv(divId, f) {
            var oDiv = $("#" + divId);
            if (oDiv[0]) {
                if (f === true) {
                    oDiv.show();
                } else if (f === false) {
                    oDiv.hide();
                } else if (oDiv.is(":visible")) {
                    oDiv.hide("fast");
                } else {
                    oDiv.show("fast");
                }
            }
        }
    </script>
    <script type="text/javascript" id="scrFormat">
        // formats a number
        function fn(num) {
            num = num.toString().replace('.', ',');
            var x = num.split(','),
                x1 = x[0],
                x2 = x.length > 1 ? ',' + x[1] : '',
                rgx = /(\d+)(\d{3})/;
            while (rgx.test(x1)) {
                x1 = x1.replace(rgx, '$1' + '\u00a0' + '$2');
            }
            return x1 + x2;
        }
    </script>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: small;" xxonload="toggleParam();initToggles();">
    <script type="text/javascript">
        if (!jQuery || !jQuery.support) {
            document.write("Error: JQuery has not loaded");
        };

    </script>
    <div class="template" id="section__________01_templates">
        =====================================================================================================
        =========================================== TEMPLATES ===============================================
        =====================================================================================================
        <script type="text/javascript" id="scrCloneTemplate">
            function cloneTemplate(templ, dict) {
                var newTag = $(templ).clone(),
                    s = newTag.html(),
                    i, sOld, sNew;
                if (dict && dict.length) {
                    for (i = dict.length - 1; i >= 0; i = i - 1) {
                        sOld = dict[i].o;
                        sNew = dict[i].n;
                        if (sOld && sNew) {
                            s = s.replace(sOld, sNew);
                        }
                    }
                }
                newTag.html(s);
                newTag.removeClass("template");
                newTag.removeAttr("id");
                newTag.show();
                return $(newTag);
            }
        </script>
        <script type="text/javascript" id="scrHideTemplates">
            var s = document.styleSheets[0];
            if (s && s.insertRule) {
                s.insertRule(".template {display:none}", 0);
                //} else if (s.addRule) {
                //    s.addRule(".template", "display:none");
            } else {
                $(document).ready(function () {
                    $(".template").hide();
                });
            }

        </script>
        <div class="template" id="__________FTECalculator">
            =========================== FTE Calculator Template =============================
            <script type="text/javascript" id="scrFTECalculatorTemplate">
                function recalcFTE(id) {
                    var 
                        oOperations = $("#" + id + "_Ops"),
                        nOperations = parseFloat(oOperations.val().replace(",", ".")),
                        oAvgEfforts = $("#" + id + "_AvgEfforts"),
                        nAvgEfforts = parseFloat(oAvgEfforts.val().replace(",", ".")),
                        nFTE = nOperations * nAvgEfforts * 12 / 1792;

                    if (isFinite(nFTE)) {
                        $("#" + id).val(Math.round(nFTE * 1000) / 1000);
                        oOperations.val(nOperations);
                        replicateValue(oOperations, 'Ops');
                        oAvgEfforts.val(nAvgEfforts);
                        replicateValue(oAvgEfforts, 'AvgEfforts');
                    }
                    recalcBenefits();
                }
                function insertFTECalculatorTemplate(id) {
                    var templ = $("#FTECalculatorTemplate"),
                        d = [{ "o": /##id##/g, "n": id}],
                        newTag = cloneTemplate(templ, d);
                    document.write(newTag[0].outerHTML);
                }
                function replicateValue(field, fieldclass) {
                    var newVal = $(field).val();
                    field.modified = true;
                    $("." + fieldclass).each(function (n, e) {
                        if (!e.modified) {
                            $(e).val(newVal);
                        }
                    });
                }
            </script>
            <div class="template" id="FTECalculatorTemplate">
                <p>
                    We recommend using the following form to estimate FTE:
                </p>
                <table class="calculator">
                    <tr>
                        <td rowspan="3">
                            &nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            <label for="##id##_Ops">
                                Overall number of operations per month:
                            </label>
                        </td>
                        <td>
                            <input type="text" id="##id##_Ops" style="text-align: right; font-size: inherit;"
                                class="Ops" onchange="replicateValue(this, 'Ops');" />
                        </td>
                        <td>
                        </td>
                        <td rowspan="3">
                            &nbsp;&nbsp;&nbsp;
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td>
                            <label for="##id##_AvgEfforts">
                                Efforts per one operation (summing all participants):
                            </label>
                        </td>
                        <td>
                            <input type="text" id="##id##_AvgEfforts" style="text-align: right; font-size: inherit;"
                                class="AvgEfforts" onchange="replicateValue(this, 'AvgEfforts');" />
                        </td>
                        <td>
                            person-hours
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="right">
                            <input type="button" onclick="recalcFTE('##id##');" value="Calculate FTE" style="font-size: 100%" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="template" id="__________FTECost">
            =========================== FTE Cost Template =============================
            <script type="text/javascript" id="scrFTECostTemplate">
                function insertFTECostTemplate(id) {
                    var templ = $("#FTECostTemplate"),
                        d = [{ "o": /##id##/g, "n": id}],
                        newTag = cloneTemplate(templ, d);
                    document.write(newTag[0].outerHTML);
                }
            </script>
            <table class="template" id="FTECostTemplate" border="0">
                <tr valign="top">
                    <td class="SmallNo">
                        123.3.
                    </td>
                    <td>
                        Average cost of one FTE, based on actual payroll per person
                        <p>
                            <input type="text" id="##id##" value="62000" style="text-align: right" class="FTECost"
                                onchange="recalcBenefits();replicateValue(this, 'FTECost');" />
                            USD/year
                        </p>
                        <div class="help">
                            Average cost of one FTE in the ACME in 2010 was 62 000 USD per year (Source: Public
                            financial reports, 3rd quarter 2010).
                            <br />
                            It's recommended to use the more accurate cost calculated by Finance for your department.
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="template" id="__________FTEHelp">
            =========================== FTE Help Template =============================
            <script type="text/javascript" id="scrFTEHelpTemplate">
                function insertFTEHelpTemplate(id) {
                    var templ = $("#FTEHelpTemplate"),
                        d = [{ "o": /##id##/g, "n": id}],
                        newTag = cloneTemplate(templ, d);
                    document.write(newTag[0].outerHTML);
                }

            </script>
            <div id="FTEHelpTemplate" class="template">
                <div id="##id##" class="help" style="display: none">
                    <b>FTE (Full-time equivalent)</b> &mdash; is a way to measure a worker's involvement
                    in a task. One FTE is equal to 8 person-hours per day (40 p-hours per week, or 1792
                    p-hours per year). This amount corresponds to a 100% involvement of one person (ignoring
                    sick-leave and other disturbances, while counting vacations, public holidays and
                    other leave paid by company), a 50% involvement of 2 persons, 25% involvement of
                    4 persons, etc.
                    <p>
                        For example: if some operation require 5 hours to complete, the operation is performed
                        2 times per month, then the workload is counted as follows:
                    </p>
                    <table border="0" style="border-collapse: collapse;">
                        <tr>
                            <td style="text-align: center; border-bottom: solid 1px black;" valign="bottom">
                                5&nbsp;<sup>p-h</sup>/<sub>oper</sub>&nbsp;&times;&nbsp;2&nbsp;<sup>oper</sup>/<sub>mon</sub>&nbsp;&times;&nbsp;12&nbsp;<sup>mon</sup>/<sub>year</sub>
                            </td>
                            <td rowspan="2" style="text-align: center;" valign="middle">
                                &nbsp;&#x2248;&nbsp;0.060&nbsp;FTE
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center;" valign="top">
                                1792&nbsp;<sup>p-h</sup>/<sub>year</sub>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="template" id="__________RiskCalculator">
            ================== Operational Risk Calculator Template =========================
            <script type="text/javascript" id="scrRiskCalculatorTemplate">
                function recalcRisk(id) {
                    var 
                        nRiskProbability = parseFloat($("#" + id + "_Probability").val().replace(",", ".")),
                        nRiskOperations = parseFloat($("#" + id + "_Operations").val().replace(",", ".")),
                        nRiskAvgLoss = parseFloat($("#" + id + "_AvgLoss").val().replace(",", ".")),
                        nRiskReduction = nRiskProbability / 100 * nRiskOperations * nRiskAvgLoss * 12 * 5;

                    if (isFinite(nRiskReduction)) {
                        $("#" + id).val(Math.round(nRiskReduction * 100) / 100);
                    }
                    recalcBenefits();
                }
                function validateProbability(o) {
                    var 
                        jq = $(o),
                        n = parseFloat(jq.val().replace(",", "."));
                    if (isFinite(n) && (0 <= n) && (n <= 100)) {
                        jq.css("backgroundColor", "");
                        jq.css("color", "");
                        jq.attr("title", "");
                    } else {
                        jq.css("backgroundColor", "darkred");
                        jq.css("color", "yellow");
                        jq.attr("title", "The probability should be between 0% and 100%");
                    }
                }
                function insertOpRiskCalculatorTemplate(id) {
                    var templ = $("#RiskCalculatorTemplate"),
                        d = [{ "o": /##id##/g, "n": id}],
                        newTag = cloneTemplate(templ, d);
                    document.write(newTag[0].outerHTML);
                }
            </script>
            <div class="template" id="RiskCalculatorTemplate">
                <p>
                    We recommend using the following form to estimate operational risks:
                </p>
                <table class="calculator">
                    <tr>
                        <td rowspan="4">
                            &nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            <label for="##id##_Probability">
                                Probability for an occurrence of undesired event when one operation is being performed
                                (percent):
                            </label>
                        </td>
                        <td>
                            <input type="text" id="##id##_Probability" style="text-align: right; font-size: inherit;"
                                onkeyup="validateProbability(this);" class="RiskProbability" onchange="replicateValue(this, 'RiskProbability');" />
                        </td>
                        <td>
                            <label for="##id##_Probability">
                                %
                            </label>
                        </td>
                        <td rowspan="4">
                            &nbsp;&nbsp;&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="##id##_Operations">
                                Average number of operations performed per month:
                            </label>
                        </td>
                        <td>
                            <input type="text" id="##id##_Operations" style="text-align: right; font-size: inherit;"
                                class="Ops" onchange="replicateValue(this, 'Ops');" />
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr valign="middle">
                        <td>
                            <label for="##id##_AvgLoss">
                                Average loss due to one undesired event:
                            </label>
                        </td>
                        <td>
                            <input type="text" id="##id##_AvgLoss" style="text-align: right; font-size: inherit;"
                                class="RiskAvgLoss" onchange="replicateValue(this, 'RiskAvgLoss');" />
                        </td>
                        <td>
                            <label for="##id##_AvgLoss">
                                USD
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="right">
                            <input type="button" id="riskRecalc" onclick="recalcRisk('##id##');" value="Calculate operational risks"
                                style="font-size: inherit;" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="display: none;" id="section__________00_99">
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
        </div>
    </div>
    <div style="display: none;" id="section__________02">
        =====================================================================================================
        ========================================= PAGE HEADER ===============================================
        =====================================================================================================
    </div>
    <table id="pageHeader" width="100%">
        <tr>
            <td class="PageHeader">
                Simple benefits estimator for small enhancements requests
            </td>
            <td style="text-align: right">
                <img alt="ACME" src="logo_en.png" height="27" width="100" />
            </td>
        </tr>
    </table>
    <hr />
    <div style="display: none;" id="section__________03">
        =====================================================================================================
        ============================= Benefits Categories selector ==========================================
        =====================================================================================================
    </div>
    <table border="0" id="BenefitsCategoriesSelector">
        <tr valign="top">
            <td class="BigNo">
                1
            </td>
            <td>
                Select applicable benefits categories:
                <br />
                <br />
                <table border="0">
                    <tr>
                        <th>
                        </th>
                        <th>
                            Improvements
                        </th>
                    </tr>
                    <tr id="categoryTemplate" class="template">
                        <td>
                            ##title##
                        </td>
                        <td>
                            <input id="##id##_tag" type="checkbox" onclick="toggleBenefitsCategory('##id##')" />
                            <label for="##id##_tag" id="##id##_label">
                                no changes</label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <noscript>
        <h1 style="color: Red">
            JavaScript is disabled or not available in your browser. Please enable JavaScript
            to use this page.
        </h1>
    </noscript>
    <script type="text/javascript" id="scrBenefitsCommonFunctions">
        //
        var benefitsCategories = new Object();

        // define Benefits class
        var Benefits;
        Benefits = function (amount, justification, error) {
            if (error) {
                this.error = error.toString();
                this.amount = NaN;
                this.justification = "";
            } else {
                this.error = "";
                this.amount = (amount) ? parseFloat(amount) : 0;
                this.justification = justification.toString();
            }

            this.add = function (otherBenefits) {
                if (otherBenefits instanceof Benefits) {
                    if (this.error || otherBenefits.error) {
                        this.amount = NaN;
                        this.justification = "";
                        this.error =
                            ((this.error) ? (this.error + "\n") : "") +
                            otherBenefits.error;
                    } else {
                        this.amount = this.amount + otherBenefits.amount;
                        this.justification =
                            ((this.justification) ? (this.justification + "\n") : "") +
                            otherBenefits.justification;
                    }
                } else {
                    throw new TypeError("Type error in Benefits.add function");
                }
            };
        };
    </script>
    <script type="text/javascript" id="scrRecalcBenefits">
        function recalcBenefits() {
            var i,
                sCategory = "",
                func,
                benefits = new Benefits(0, "");
            for (sCategory in benefitsCategories) {
                if (benefitsCategories[sCategory]) {
                    func = this[sCategory + "Benefits"];
                    if (func && typeof (func) == "function") {
                        benefits.add(func());
                    }
                }
            }
            if (benefits.error) {
                $("#benefitsAmount").val("");
                $("#benefitsJustification").val(benefits.error);
            } else {
                $("#benefitsAmount").val(benefits.amount);
                $("#benefitsJustification").val(benefits.justification);
            }
        }
    </script>
    <script type="text/javascript" id="scrBenefitsSelectorFunctions">
        function toggleBenefitsCategory(id) {
            var chk = $("#" + id + "_tag"),
                label = $("#" + id + "_label");
            if (chk[0] && chk[0].checked) {
                label.html("<strong>Improved</strong>");
                $("#" + id + "_params").show("fast", function () { renumerateSections(); });
                benefitsCategories[id] = id;
            } else {
                label.html("No changes");
                $("#" + id + "_params").hide("fast", function () { renumerateSections(); });
                benefitsCategories[id] = undefined;
            }
            recalcBenefits();
        }
        function addBenefitsCategory(id, title) {
            var templ = $("#categoryTemplate"),
                d = [{ "o": /##id##/g, "n": id }, { "o": /##title##/g, "n": title}],
                newTag = cloneTemplate(templ, d);
            templ.parent().append(newTag);
            toggleBenefitsCategory(id);
        }
    </script>
    <hr class="light" />
    <div style="display: none;" id="section__________06">
        =====================================================================================================
        ============================== Anticipated reduction of workload ====================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="effortsBenefits">
        $(document).ready(function () {
            addBenefitsCategory("efforts", "Personnel workload");
        });
        function effortsBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "",
                er = "",

                nFTENumb = parseFloat($("#effortsFTE").val().replace(",", ".")),
                nFTERedu = parseFloat($("#effortsReducedFTE").val().replace(",", ".")),
                nFTECost = parseFloat($("#effortsFTECost").val().replace(",", "."));

            benefitsAmount = Math.round((nFTENumb - nFTERedu) * nFTECost * 5 * 100) / 100;

            if (isFinite(benefitsAmount)) {
                benefitsJustification = "The anticipated reduction of workload " +
                            "is counted as the payroll decrease from " +
                            fn(nFTENumb) + " FTE to " +
                            fn(nFTERedu) + " FTE over 5 years assuming the cost of one FTE " +
                            fn(nFTECost) + " USD/year.";
            } else {
                er = "The parameters of the workload reduction are not specified";
            }


            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="efforts_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the anticipated reduction of workload by the automation
                        of the operation:
                    </p>
                    <table>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                The average efforts to perform the operation <strong>manually without</strong> the
                                implementation of the change request over the following 5&nbsp;years
                                <p>
                                </p>
                                <table border="0">
                                    <tr valign="middle">
                                        <td>
                                            <input type="text" id="effortsFTE" style="text-align: right" onchange="recalcBenefits();" />
                                        </td>
                                        <td>
                                            <a href="javascript:toggleDiv('help_effortsFTE')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                        </td>
                                    </tr>
                                </table>
                                <script type="text/javascript">
                                    insertFTEHelpTemplate("help_effortsFTE");
                                    insertFTECalculatorTemplate("effortsFTE");
                                </script>
                                &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.3.&nbsp;
                            </td>
                            <td>
                                The average efforts to perform the operation <strong>using an application after</strong>
                                the implementation of the change request over the following 5&nbsp;years
                                <p>
                                </p>
                                <table border="0">
                                    <tr valign="middle">
                                        <td>
                                            <input type="text" id="effortsReducedFTE" style="text-align: right" onchange="recalcBenefits();" />
                                        </td>
                                        <td>
                                            <a href="javascript:toggleDiv('help_effortsFTE2')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                        </td>
                                    </tr>
                                </table>
                                <script type="text/javascript">
                                    insertFTEHelpTemplate("help_effortsFTE2");
                                    insertFTECalculatorTemplate("effortsReducedFTE");
                                </script>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <script type="text/javascript">
                        insertFTECostTemplate("effortsFTECost")
                    </script>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________07">
        =====================================================================================================
        ============================== Reduction of operational risks =======================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="riskBenefits">
        $(document).ready(function () {
            addBenefitsCategory("risks", "Operational risks");
        });
        function risksBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "",
                er = "",

                nRiskOriginal = parseFloat($("#riskOriginal").val().replace(",", ".")),
                nRiskReduced = parseFloat($("#riskReduced").val().replace(",", ".")),

                nOrigProbability = parseFloat($("#riskOriginal_Probability").val().replace(",", ".")),
                nOrigOperations = parseFloat($("#riskOriginal_Operations").val().replace(",", ".")),
                nOrigAvgLoss = parseFloat($("#riskOriginal_AvgLoss").val().replace(",", ".")),
                nOrigRisk = Math.round((nOrigProbability / 100 * nOrigOperations * nOrigAvgLoss * 12 * 5) * 100) / 100,
                sOrigRiskJustify = "",

                nReduProbability = parseFloat($("#riskReduced_Probability").val().replace(",", ".")),
                nReduOperations = parseFloat($("#riskReduced_Operations").val().replace(",", ".")),
                nReduAvgLoss = parseFloat($("#riskReduced_AvgLoss").val().replace(",", ".")),
                nReduRisk = Math.round((nReduProbability / 100 * nReduOperations * nReduAvgLoss * 12 * 5) * 100) / 100,
                sReduRiskJustify = "";

            benefitsAmount = Math.round((nRiskOriginal - nRiskReduced) * 100) / 100;

            if (nOrigRisk == nRiskOriginal) {
                sOrigRiskJustify =
                        " (assuming the average loss of " + fn(nOrigAvgLoss) + " USD per operation"
                        + " with probability " + nOrigProbability + "%"
                        + ((nOrigProbability > 100) ? " ( MORE THAN 100%!!!)" : "")
                        + " having " + fn(nOrigOperations) + " operations per month)";
            }
            if (nReduRisk == nRiskReduced) {
                sReduRiskJustify =
                        " (assuming the average loss of " + fn(nReduAvgLoss) + " USD per operation"
                        + " with probability " + nReduProbability + "%"
                        + ((nReduProbability > 100) ? " ( MORE THAN 100%!!!)" : "")
                        + " having " + fn(nReduOperations) + " operations per month)";
            }


            if (isFinite(benefitsAmount)) {
                benefitsJustification = "The anticipated reduction of operational risks over" +
                            " 5 years after implementation of the change request is estimated as" +
                            " the decrease from " + nRiskOriginal + " USD" + sOrigRiskJustify +
                            " to " + nRiskReduced + " USD" + sReduRiskJustify;
            } else {
                er = "The parameters of the operational risks reduction are not specified";
            }


            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="risks_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the anticipated reduction of operational risks by
                        the implementation of the change request:
                    </p>
                    <table>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Estimate the ammount of the operational risks over the following 5&nbsp;years in
                                case when request <strong>is not implemented</strong>
                                <p>
                                </p>
                                <input type="text" id="riskOriginal" style="text-align: right" onchange="recalcBenefits();" />
                                USD
                                <script type="text/javascript">
                                    insertOpRiskCalculatorTemplate("riskOriginal");
                                </script>
                                &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.3.&nbsp;
                            </td>
                            <td>
                                Estimate of the operational risks over the following 5&nbsp;years <strong>after the
                                    implementation</strong> of the change request
                                <p>
                                </p>
                                <input type="text" id="riskReduced" style="text-align: right" onchange="recalcBenefits();" />
                                USD
                                <script type="text/javascript">
                                    insertOpRiskCalculatorTemplate("riskReduced");
                                </script>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________04">
        =====================================================================================================
        ============================== A risk of license loss or CEO dismissal ==============================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="scrLicenseBenefits">
        $(document).ready(function () {
            addBenefitsCategory("license", "Regulatory requirement: risk of license loss");
        });
        function licenseBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "",
                er = "",

                fManual = $("#licenseManual").is(":checked"),
                nFTENumb = parseFloat($("#licenseFTE").val().replace(",", ".")),
                nFTERedu = parseFloat($("#licenseReducedFTE").val().replace(",", ".")),
                nFTECost = parseFloat($("#licenseFTECost").val().replace(",", "."));

            benefitsAmount = Math.round((nFTENumb - nFTERedu) * nFTECost * 5 * 100) / 100;
            if (fManual) {
                if (isFinite(benefitsAmount)) {
                    if (benefitsAmount < 1000000000) {
                        benefitsJustification = "The decrease in the license loss risk " +
                            "is assumed to be equal to the payroll decrease from " +
                            fn(nFTENumb) + " FTE to " +
                            fn(nFTERedu) + " FTE over 5 years assuming the cost of one FTE " +
                            fn(nFTECost) + " USD/year.";
                    } else {
                        benefitsJustification = "The decrease in the license loss risk is "
                            + "comparable to the net worth of the Bank";
                    }
                } else {
                    er = "The parameters the license loss risk decrease are not specified";
                }
            } else {
                benefitsAmount = 778900000000;
                benefitsJustification = "The decrease in the license loss risk is assumed to "
                    + "be equal to the net worth of the Bank (as of the end of 2009)";
            }

            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="license_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the benefit in terms of the risk of license loss (related to the regulatory requirements):
                    </p>
                    <table>
                        <tr valign="top">
                            <td class="SmallNo">
                                72.1.&nbsp;
                            </td>
                            <td>
                                <table border="0">
                                    <tr valign="middle">
                                        <td>
                                            <input type="checkbox" checked="checked" id="licenseManual" onclick="toggleDiv('licenseManualDetails', this.checked);recalcBenefits();" />
                                        </td>
                                        <td>
                                            <label for="licenseManual">
                                                There is a possibility to fulfil the requirements manually
                                            </label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <div id="licenseManualDetails">
                        &nbsp;
                        <table>
                            <tr valign="top">
                                <td class="SmallNo">
                                    52.2.&nbsp;
                                </td>
                                <td>
                                    The average efforts to fulfil requirements <strong>manually without</strong> the
                                    implementation of the change request over the following 5&nbsp;years
                                    <p>
                                    </p>
                                    <table border="0">
                                        <tr valign="middle">
                                            <td>
                                                <input type="text" id="licenseFTE" style="text-align: right" onchange="recalcBenefits();" />
                                            </td>
                                            <td>
                                                <a href="javascript:toggleDiv('helpFTE1')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        insertFTEHelpTemplate("helpFTE1");
                                        insertFTECalculatorTemplate("licenseFTE");
                                    </script>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr valign="top">
                                <td class="SmallNo">
                                    52.3.&nbsp;
                                </td>
                                <td>
                                    The average efforts to fulfil requirements <strong>using application after</strong>
                                    the implementation of the change request over the following 5&nbsp;years
                                    <p>
                                    </p>
                                    <table border="0">
                                        <tr valign="middle">
                                            <td>
                                                <input type="text" id="licenseReducedFTE" style="text-align: right" onchange="recalcBenefits();" />
                                            </td>
                                            <td>
                                                <a href="javascript:toggleDiv('helpFTE1_2')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        insertFTEHelpTemplate("helpFTE1_2");
                                        insertFTECalculatorTemplate("licenseReducedFTE");
                                    </script>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <script type="text/javascript">
                            insertFTECostTemplate("licenseFTECost")
                        </script>
                    </div>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________05">
        =====================================================================================================
        ============================== Risk of penalties ====================================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="penaltyBenefits">
        $(document).ready(function () {
            addBenefitsCategory("penalty", "Regulatory requirement: risk of penalties");
        });
        function penaltyBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "",
                er = "",

                nPenaltyAmount = parseFloat($("#penaltyAmount").val().replace(",", ".")),
                fManual = $("#penaltyManual").is(":checked"),
                nFTENumb = parseFloat($("#penaltyFTE").val().replace(",", ".")),
                nFTERedu = parseFloat($("#penaltyReducedFTE").val().replace(",", ".")),
                nFTECost = parseFloat($("#penaltyFTECost").val().replace(",", "."));

            benefitsAmount = Math.round((nFTENumb - nFTERedu) * nFTECost * 5 * 100) / 100;
            if (fManual) {
                if (isFinite(benefitsAmount) && isFinite(nPenaltyAmount)) {
                    benefitsJustification = "The decrease in the penalties risk " +
                            "is assumed to be equal to the payroll decrease from " +
                            fn(nFTENumb) + " FTE to " +
                            fn(nFTERedu) + " FTE over 5 years assuming the cost of one FTE " +
                            fn(nFTECost) + " USD/year." +
                            " The anticipated penalties during the following 5 years in case " +
                            "when the requirements are not adhered are estimated as " +
                            fn(nPenaltyAmount) + " USD in total."
                } else {
                    er = "The parameters of the penalties risk decrease are not specified";
                }
            } else {
                if (isFinite(nPenaltyAmount)) {
                    benefitsAmount = nPenaltyAmount;
                    benefitsJustification = "The benefits are assumed to be equal to " +
                        "the anticipated penalties during the following 5 years in case " +
                        "when the request is not implemented."
                } else {
                    er = "The anticipated penalty amount for the penalties risk is not specified";
                }
            }

            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="penalty_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the benefit in terms of the risk of penalties (related to the regulatory requirements):
                    </p>
                    <table>
                        <tr valign="top">
                            <td class="SmallNo">
                                2.1.&nbsp;
                            </td>
                            <td>
                                Total amount of anticipated penalties in case when requirements are not adhered
                                during the following 5 years
                                <p>
                                    <input type="text" id="penaltyAmount" style="text-align: right" onchange="recalcBenefits();" />
                                    USD
                                </p>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                72.1.&nbsp;
                            </td>
                            <td>
                                <table border="0">
                                    <tr valign="middle">
                                        <td>
                                            <input type="checkbox" checked="checked" id="penaltyManual" onclick="toggleDiv('penaltyManualDetails', this.checked);recalcBenefits();" />
                                        </td>
                                        <td>
                                            <label for="penaltyManual">
                                                There is a possibility to fulfil the requirements manually
                                            </label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <div id="penaltyManualDetails">
                        &nbsp;
                        <table>
                            <tr valign="top">
                                <td class="SmallNo">
                                    52.2.&nbsp;
                                </td>
                                <td>
                                    The average efforts to fulfil requirements <strong>manually without</strong> the
                                    implementation of the change request over the following 5&nbsp;years
                                    <p>
                                    </p>
                                    <table border="0">
                                        <tr valign="middle">
                                            <td>
                                                <input type="text" id="penaltyFTE" style="text-align: right" onchange="recalcBenefits();" />
                                            </td>
                                            <td>
                                                <a href="javascript:toggleDiv('help_penaltyFTE')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        insertFTEHelpTemplate("help_penaltyFTE");
                                        insertFTECalculatorTemplate("penaltyFTE");
                                    </script>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr valign="top">
                                <td class="SmallNo">
                                    52.3.&nbsp;
                                </td>
                                <td>
                                    The average efforts to fulfil requirements <strong>using application after</strong>
                                    the implementation of the change request over the following 5&nbsp;years
                                    <p>
                                    </p>
                                    <table border="0">
                                        <tr valign="middle">
                                            <td>
                                                <input type="text" id="penaltyReducedFTE" style="text-align: right" onchange="recalcBenefits();" />
                                            </td>
                                            <td>
                                                <a href="javascript:toggleDiv('help_penaltyFTE2')" class="helplink">FTE<sup style="font-size: xx-small">(?)</sup></a>
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        insertFTEHelpTemplate("help_penaltyFTE2");
                                        insertFTECalculatorTemplate("penaltyReducedFTE");
                                    </script>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <script type="text/javascript">
                            insertFTECostTemplate("penaltyFTECost")
                        </script>
                    </div>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________08">
        =====================================================================================================
        ============================== Reduction of material usage ==========================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="materialBenefits">
        $(document).ready(function () {
            addBenefitsCategory("material", "Material usage");
        });
        function materialBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "TBD (reduction of material usage)",
                er = "",

                nPartsCount = parseFloat($("#materialCount").val().replace(",", ".")) * 12 * 5,
                nOriginalCost = parseFloat($("#materialOriginalCost").val().replace(",", ".")),
                nReducedCost = parseFloat($("#materialReducedCost").val().replace(",", "."));

            benefitsAmount = Math.round(nPartsCount * (nOriginalCost - nReducedCost) * 100) / 100;

            if (isFinite(benefitsAmount)) {
                benefitsJustification = "The anticipated reduction of material usage over" +
                            " 5 years after implementation of the change request is estimated as" +
                            " the decrease from " + nOriginalCost + " USD" +
                            " to " + nReducedCost + " USD per each of " + nPartsCount + " parts produced";
            } else {
                er = "The parameters of the material usage reduction are not specified";
            }


            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="material_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the anticipated reduction of material usage by the
                        implementation of the change request:
                    </p>
                    <table>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Average number of parts produced <em>every month</em> over the following 5&nbsp;years
                                <p>
                                </p>
                                <input type="text" id="materialCount" style="text-align: right" onchange="recalcBenefits();" />
                                pcs. &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Estimate of the average cost of materials needed to produce one part over the following
                                5&nbsp;years in case when request <strong>is not implemented</strong>
                                <p>
                                </p>
                                <input type="text" id="materialOriginalCost" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.3.&nbsp;
                            </td>
                            <td>
                                Estimate of the average cost of materials needed to produce one part over the following
                                5&nbsp;years <strong>after the implementation</strong> of the change request
                                <p>
                                </p>
                                <input type="text" id="materialReducedCost" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________09">
        =====================================================================================================
        ============================== Reduction of scrap ===================================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="scrapBenefits">
        $(document).ready(function () {
            addBenefitsCategory("scrap", "Scrap");
        });
        function scrapBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "TBD (reduction of scrap)",
                er = "",

                nOriginalCost = parseFloat($("#scrapOriginal").val().replace(",", ".")),
                nReducedCost = parseFloat($("#scrapReduced").val().replace(",", "."));
            
            benefitsAmount = Math.round( (nOriginalCost - nReducedCost) * 100) / 100;

            if (isFinite(benefitsAmount)) {
                benefitsJustification = "The anticipated reduction of scrap over" +
                            " 5 years after implementation of the change request is estimated as" +
                            " the decrease from " + nOriginalCost + " USD" +
                            " to " + nReducedCost + " USD";
            } else {
                er = "The parameters of the scrap reduction are not specified";
            }

            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="scrap_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the anticipated reduction of scrap by the implementation
                        of the change request:
                    </p>
                    <table>
                        <!--<tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Average number of parts produced monthly over the following 5&nbsp;years
                                <p>
                                </p>
                                <input type="text" id="scrapCount" style="text-align: right" onchange="recalcBenefits();" />
                                pcs. &nbsp;
                            </td>
                        </tr>-->
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Estimate of the average cost of materials and parts scraped over the following 5&nbsp;years
                                in case when request <strong>is not implemented</strong>
                                <p>
                                </p>
                                <input type="text" id="scrapOriginal" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.3.&nbsp;
                            </td>
                            <td>
                                Estimate of the average cost of materials and parts scraped over the following 5&nbsp;years
                                <strong>after the implementation</strong> of the change request
                                <p>
                                </p>
                                <input type="text" id="scrapReduced" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________10">
        =====================================================================================================
        ============================== Reduction of inventory ===================================================
        =====================================================================================================
    </div>
    <script type="text/javascript" id="inventoryBenefits">
        $(document).ready(function () {
            addBenefitsCategory("inventory", "Inventory");
        });
        function inventoryBenefits() { // returining Benefits
            var benefitsAmount = 0,
                benefitsJustification = "TBD (reduction of inventory)",
                er = "",

                nOriginalCost = parseFloat($("#inventoryOriginal").val().replace(",", ".")),
                nReducedCost = parseFloat($("#inventoryReduced").val().replace(",", "."));
            
            benefitsAmount = Math.round((nOriginalCost - nReducedCost) * 100) / 100;
            
            if (isFinite(benefitsAmount)) {
                benefitsJustification = "The anticipated reduction of inventory over" +
                            " 5 years after implementation of the change request is estimated as" +
                            " the decrease from " + nOriginalCost + " USD" +
                            " to " + nReducedCost + " USD";
            } else {
                er = "The parameters of the inventory reduction are not specified";
            }

            return new Benefits(benefitsAmount, benefitsJustification, er);
        }
    </script>
    <div id="inventory_params" style="display: none;">
        <table border="0" style="max-width: 60em;">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    <p>
                        Specify the attributes defining the anticipated reduction of inventory by the implementation
                        of the change request:
                    </p>
                    <table>
                        <!--<tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Average number of parts produced monthly over the following 5&nbsp;years
                                <p>
                                </p>
                                <input type="text" id="scrap count" style="text-align: right" onchange="recalcBenefits();" />
                                pcs. &nbsp;
                            </td>
                        </tr>-->
                        <tr valign="top">
                            <td class="SmallNo">
                                52.2.&nbsp;
                            </td>
                            <td>
                                Estimate of the average daily cost of inventory over the following 5&nbsp;years
                                in case when request <strong>is not implemented</strong>
                                <p>
                                </p>
                                <input type="text" id="inventoryOriginal" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="SmallNo">
                                52.3.&nbsp;
                            </td>
                            <td>
                                Estimate of the average daily cost of inventory over the following 5&nbsp;years
                                <strong>after the implementation</strong> of the change request
                                <p>
                                </p>
                                <input type="text" id="inventoryReduced" style="text-align: right" onchange="recalcBenefits();" />
                                USD &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <hr class="light" />
    </div>
    <div style="display: none;" id="section__________0100">
        =====================================================================================================
        =========================== Benefits Calculation ====================================================
        =====================================================================================================
    </div>
    <div id="benefits" style="max-width: 60em;">
        <table border="0">
            <tr valign="top">
                <td class="BigNo">
                    N
                </td>
                <td>
                    Benefits estimation:
                    <p>
                    </p>
                    <input type="text" id="benefitsAmount" value="0" style="text-align: right" />
                    USD
                    <p>
                        Justification:
                    </p>
                    <textarea id="benefitsJustification" rows="6" cols="60" style="font-family: Arial, Helvetica, sans-serif;"></textarea>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
